<!-- 导航栏 -->
<div class="container-fluid header">
        <div class="container-w">
            <div class="logo">
                <a href="index.html">
                    <img src="/images/logo.png" alt="">
                </a>
            </div>
            <div class="nav">
                    <ul>
                            <%menus.forEach(function(menu){%>
                                <li><a href="<%=menu.linkUrl%>"><%=menu.menuName%></a></li>
                            <%})%>
                            
                           
                        </ul>
            </div>
            <div class="loginbox">
                    <%if(locals.user){%>
                        <a href="#">
                            <img src="<%=user.avatar%>" alt="" style="width:40px;height:40px;border-radius:50%">
                            <%=user.username%></a>
                    <%}else{%>
                        <a href="/login">登录</a>
                        <a href="/register">注册</a>
                    <%}%>
                    
            </div>
            <div class="search">
                <input type="text" placeholder="搜索文章">
            </div>
        </div>
    </div>